package com.zhs.smartmall.product.dto;

import io.swagger.annotations.ApiModel;
import lombok.*;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 *
 * @author zhenghuisheng
 * @since 2023-11-11
 */
@Data
@ApiModel(value = "PmsSkuInfoDto")
public class PmsSkuInfoDto implements Serializable {
        //表字段
        private static final long serialVersionUID = 1L;
        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "主键")
        private Long id;

        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "spuId")
        private Long spuId;

        @ApiModelProperty(value = "sku名称")
        private String skuName;

        @ApiModelProperty(value = "sku介绍描述")
        private String skuDesc;

        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "所属分类id")
        private Long catalogId;

        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "品牌id")
        private Long brandId;

        @ApiModelProperty(value = "默认图片")
        private String skuDefaultImg;

        @ApiModelProperty(value = "标题")
        private String skuTitle;

        @ApiModelProperty(value = "副标题")
        private String skuSubtitle;

        @ApiModelProperty(value = "价格")
        private java.math.BigDecimal price;

        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "销量")
        private Long saleCount;

        @ApiModelProperty(value = "创建时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;

        @ApiModelProperty(value = "更新时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date updateTime;

        @ApiModelProperty(value = "是否删除")
        private Integer isDeleted;

        //=====================自定义字段=====================

        //id
        private List<String> idList;
}
